package com.lsl.enums;


/**
 * @author lishuailong
 * @create 2020-07-07 15:47
 */
public enum Status implements Info {
    NEW("NEW"){
        @Override
        public void show() {

        }
    },NEW1("NEW1") {
        @Override
        public void show() {

        }
    };

    private final String string;
    Status(String string) {
        this.string = string;
    }

}
enum Season1 {
    //1.提供当前枚举类的对象，多个对象之间用","隔开，末尾对象";"结束
    SPRING("春天","春暖花开"),
    SUMMER("夏天","夏日炎炎"),
    AUTUMN("秋天","秋高气爽"),
    WINTER("冬天","冰天雪地");

    //2.声明Season对象的属性:private final修饰
    private final String seasonName;
    private final String seasonDesc;

    //2.私化类的构造器,并给对象属性赋值

    private Season1(String seasonName,String seasonDesc){
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }

    //4.其他诉求1：获取枚举类对象的属性
    public String getSeasonName() {
        return seasonName;
    }

    public String getSeasonDesc() {
        return seasonDesc;
    }

}
interface Info{
    void show();
}